<?php
namespace app\admin\validate;
use think\Validate;
class Adcate extends Validate
{

    protected $rule=[
        'name'=>'unique:admin|require|max:25',
        
    ];


    protected $message=[
        'name.require'=>'名称不能为空',
        'name.unique'=>'名称不能重复',
        
    ];

    protected $scene=[
        'add'=>['name'],
        'edit'=>['name'],
    ];





    

    




   

    












}
